package com.mda.core.io;

import com.mda.log.Logger;

/**
 * Created by Administrator on 13-12-9.
 */
public abstract class MdaAbstractFileResource implements MdaResource {
    private static final Logger LOGGER = Logger.getLogger(MdaAbstractFileResource.class);
    protected String validatePath(String path) {
        if (path == null || "".equals(path)) {
            LOGGER.error("file path must not null.");
            return null;
        }
        return path.trim().toLowerCase();
    }

}
